import { useRef, useEffect } from 'react'

function App() {
  const inputRef = useRef<HTMLInputElement>(null)
  useEffect(() => {
    inputRef.current?.focus()
  }, [])

  return (
    <div>
      <p>this is app</p>
      <p>
        <input ref={inputRef}></input>
      </p>
    </div>
  )
}

export default App
